<html xmlns:th="http://www.thymeleaf.org">
<!--/*@thymesVar id="manageUserForm" type="com.bean.ManageUser"*/-->
<!--/*@thymesVar id="manageRole" type="com.bean.ManageRole"*/-->
<div class="bjui-row col-1" th:fragment="form">
    <label class="row-label">登录名</label>
    <div class="row-input required">
        <input type="text" name="name" style="width:300px;" th:value="${manageUserForm.name}" data-rule="required"
               th:readonly="${manageUserForm.name!=null}">
    </div>


    <label class="row-label" th:if="${manageUserForm.name==null}">登录密码</label>
    <div class="row-input" th:if="${manageUserForm.name==null}">
        <input type="password" style="width:300px;" id="j_user_pass" name="passwd" data-rule="登录密码:required">
    </div>
    <label class="row-label" th:if="${manageUserForm.name==null}">确认登录密码</label>
    <div class="row-input" th:if="${manageUserForm.name==null}">
        <input type="password" style="width:300px;" id="j_user_pass2" name="" data-rule="required;match(#j_user_pass)">
    </div>


    <label class="row-label">邮件</label>
    <div class="row-input ">
        <input type="text" name="email" style="width:300px;" th:value="${manageUserForm.email}">
    </div>
    <label class="row-label">所属角色</label>
    <div class="row-input required">
        <select name="roleid" data-toggle="selectpicker" data-rule="required">
            <option style="width:300px;height:100%" value="">请选择</option>
            <option th:each="manageRole,manageRoleStat : ${manageRoleList}"
                    th:value="${manageRole.id}" th:text="${manageRole.name}"
                    th:selected="${manageRole.id}==${manageUserRoleForm.manageRoleId}">
            </option>
        </select>
    </div>

    <label class="row-label">备注</label>
    <div class="row-input required">
        <input type="text" name="remark" style="width:300px;" th:value="${manageUserForm.remark}">
    </div>
    <label class="row-label">状态</label>
    <div class="row-input required">
        <select name="state" data-toggle="selectpicker" data-rule="required">
            <option style="width:300px;height:100%" value="">请选择</option>
            <option th:each="status,statusStat : ${statusList}"
                    th:value="${status.code}" th:text="${status.display}"
                    th:selected="${status.code}==${manageUserForm.state.code}">
            </option>
        </select>
    </div>

</div>

